package com.zzy.springbootdemo.design_05_singleton;

/**
 * 类的内部类
 */
public class Singleton_05 {

    private static class SingletonHolder{
        private static Singleton_05 singleton_05 = new Singleton_05();
    }

    private Singleton_05(){
    }

    public static Singleton_05 getInstancce(){
        return SingletonHolder.singleton_05;
    }

}
